#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>

int
main (int argc, char *argv[])
{
  
  if (argc == 1) {
    // If nothing is passed in
    // for example: `./main', where argc = 1, argv = {"./main", *NULL}
    printf("U shall at least feed in at least command...\nFor example:\n  ./main ls -l");
  } else {
    // Create a child process
    // pass in command like `./main ls', where execvp('ls', *{NULL})
    fork();
    execvp(argv[1], argv + 1);
  }

  return 0;
}
